package com.groupfifteen.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.groupfifteen.dao.SysLoginDao;
import com.groupfifteen.entity.SysAdminEntity;
import com.groupfifteen.entity.SysLoginEntity;
import com.groupfifteen.entity.SysTeacherEntity;
import com.groupfifteen.entity.SysUserEntity;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
@Service
@RequiredArgsConstructor

public class SysLoginServiceImpl extends ServiceImpl<SysLoginDao, SysLoginEntity> implements SysLoginService {
    private final SysLoginDao login ;
//    @Override
//    public SysUserEntity userLogin(Integer id, String password) {
//        return login.userLogin(id, password);
//    }



    @Override
    public SysUserEntity userLogin(Integer id, String password) {
        return login.userLogin(id, password) ;
    }
    @Override
    public SysTeacherEntity teacherLogin(Integer id, String password) {
        return login.teacherLogin(id, password) ;
    }
    @Override
    public SysAdminEntity adminLogin(Integer id, String password) {
        return login.adminLogin(id, password) ;
    }



}
